package com.cn.study002;

public class Receipts {
	public static void main(String[] args) {
		int ts=245;    //T恤单价
		int shoe=570;     //网球鞋
	    int tRk=320;      //网球拍
		double sum=(ts*2+shoe+tRk)*0.8;
		int pay=1500;
		double bad=pay-sum;
		int integral =(int)sum/100*2; 

		System.out.println("*******消费单*******");
		System.out.println("购买物品\t单价\t个数\t金额");
		System.out.println("T恤\t￥245\t2\t￥490");
		System.out.println("网球鞋\t￥570\t1\t￥570");
		System.out.println("网球拍\t￥320\t1\t￥320");
		System.out.println();
		System.out.println("折扣：\t"+"8折");
		System.out.println("消费总金额\t"+sum);
		System.out.println("实际交费\t"+pay);
		System.out.println("找钱\t"+bad);
		System.out.println("本次购物所获的积分"+integral);
		
		
	}

}
